What is Fragile class problem.?
2349
25-Feb-2017
Royce Roy
25-Feb-2017Fragile class problem is a problem of object oriented programing. Suppose we have two class first class is the parent and second class is the child class. In the child class we have inherited the parent class and both have two overloaded function means have same method name.
When we run this application we get unexpected result
To overcome this problem we can make the class sealed. In the above example I have make parent class and child and in the child I have extended parent class then in the main make the instance of child.